﻿<UserControl x:Class="VMWareLabWorkflowsDataContracts.VMWareLabDetailsDialogControls.NavigationControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d">    

    <UserControl.Resources>
        <Style TargetType="{x:Type RadioButton}">
            <Setter Property="OverridesDefaultStyle" Value="true" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type RadioButton}">
                        <Grid x:Name="rb_content" Width="150"  HorizontalAlignment="Stretch" VerticalAlignment="Center" Background="Transparent" >                             
                            <ContentPresenter x:Name="rb_ControlPresenter" Margin="10,5">
                            </ContentPresenter>
                        </Grid>                        
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsMouseOver" Value="True">
                                <Setter TargetName="rb_content" Property="Background" Value="Gainsboro"/>
                            </Trigger>
                            <Trigger Property="IsChecked" Value="True">
                                <Setter TargetName="rb_content" Property="Background" Value="DarkGray"/>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </UserControl.Resources>
    <Grid>        
        <Grid Height="auto" HorizontalAlignment="Left" Name="grid1" VerticalAlignment="Top" Width="150">
            <Grid.RowDefinitions>
                <RowDefinition Height="auto" />
                <RowDefinition Height="auto" />
                <RowDefinition Height="auto" />
                <RowDefinition Height="auto" />
                <RowDefinition Height="auto" />
            </Grid.RowDefinitions>
            <RadioButton Content="Welcome" IsChecked="True" HorizontalAlignment="Left"  Name="Welcome" VerticalAlignment="Top" Checked="SelectionChanged" />
            <RadioButton Content="Environment" Grid.Row="1" HorizontalAlignment="Left"  Name="Environment" VerticalAlignment="Top" Checked="SelectionChanged" />
            <RadioButton Content="Build" Grid.Row="2" HorizontalAlignment="Left"  Name="Build" VerticalAlignment="Top" Checked="SelectionChanged" />
            <RadioButton Content="Deploy" Grid.Row="3" HorizontalAlignment="Left"  Name="Deploy" VerticalAlignment="Top" Checked="SelectionChanged" />
            <RadioButton Content="Test" Grid.Row="4" HorizontalAlignment="Left"  Name="Test" VerticalAlignment="Top" Checked="SelectionChanged" />
        </Grid>
    </Grid>
</UserControl>
